<template>
  <div id="form-message-item">
    <el-row v-if="isLong">
      <el-col
        :span="4"
      ><div class="message"><slot name="message" /></div></el-col>
      <el-col
        :span="20"
      ><div class="content"><slot name="content" /></div></el-col>
    </el-row>
    <el-row v-else>
      <el-col
        :span="4"
      ><div class="message"><slot name="message" /></div></el-col>
      <el-col
        :span="13"
      ><div class="content"><slot name="content" /></div></el-col>
      <el-col
        :span="7"
      ><div class="buttons"><slot name="buttons" /></div></el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'FormMessageItem',
  props: {
    isLong: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style scoped lang="scss">
  #form-message-item{
    margin-bottom: 5px;
    font-size: 12px;
  }

  .message{
    text-align: right;
  }
.el-col {
  height: 40px !important;
  line-height: 40px !important;
}
  .buttons {
    margin-left: 15px;
  }
</style>
